import os
import wx
import debug

configuration_dir = None

def get_configuration_dir():
	global configuration_dir
	#assert configuration_dir == None
	p=wx.StandardPaths.Get().GetUserDataDir()
	if debug.ON:
		p += '_DEBUG'
	configuration_dir = p
	return p

def get_user_settings_module_path():
	return os.path.join(configuration_dir,"settings.py")
	
def get_default_settings_dump_path():
	return os.path.join(configuration_dir,"Default_Settings_Reference.txt")
	
def get_persistent_state_savefile_path():
	return os.path.join(configuration_dir,"Persistent_State.savefile")